#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh move.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_*.sql ./mysql/db
#cp ../sql/ry_20230706.sql ./mysql/db
#cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin prepare html "
mv ../ruoyi-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin move ruoyi-gateway "
mv ../ruoyi-gateway/target/ruoyi-gateway.jar ./ruoyi/gateway/jar

echo "begin move ruoyi-auth "
mv ../ruoyi-auth/target/ruoyi-auth.jar ./ruoyi/auth/jar

echo "begin move ruoyi-visual "
mv ../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar  ./ruoyi/visual/monitor/jar

echo "begin move ruoyi-modules-system "
mv ../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar ./ruoyi/modules/system/jar

echo "begin move ruoyi-modules-file "
mv ../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar ./ruoyi/modules/file/jar

echo "begin move ruoyi-modules-job "
mv ../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar ./ruoyi/modules/job/jar

echo "begin move ruoyi-modules-gen "
mv ../ruoyi-modules/ruoyi-gen/target/ruoyi-modules-gen.jar ./ruoyi/modules/gen/jar

